package com.xqboss.apps.dto.synthesis;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.xqboss.apps.dto.PageDto;
import com.xqboss.chain.domain.chain.dto.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "活动配置分页查询入参", description = "接收参数")
public class SynthesisPageDto extends PageDto implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "活动名称")
    private String name;
    @ApiModelProperty(value = "分类筛选")
    private Long categoryId;
//    @ApiModelProperty(value = "方案名称")
//    private String planName;
    @ApiModelProperty(value = "活动状态,[1:未开始;2:进行中;3:已结束]")
    @Min(value = 1, message = "活动状态格式不合法")
    @Max(value = 3, message = "活动状态格式不合法")
    private Integer status;
    @ApiModelProperty(value = "筛选可见", hidden = true)
    @JsonIgnore
    private Boolean show;
}
